﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace XChip_Common
{
    public interface ICadj
    {
        [DllImportX("CadjChannel.dll", CallingConvention = CallingConvention.StdCall)]
        int y_enhance_para(double Q_K, double K_r, double Y_r1, double Y_r2,ref sMsg struMes);
    }
    [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
    public struct sMsg {
        public bool bResult;
        [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)]
        public string cMessage;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)]
        public double[] dData;
    }
}
